package com.jiang.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Set;

import com.jiang.vo.News;

public interface INewsDao {

	public Boolean doCreate(News news) throws SQLException;

	public Boolean doUpdate(News news) throws SQLException;

	public Boolean doRemoveBatch(Set<Integer> ids) throws SQLException;

	public News findById(Integer id) throws SQLException;

	public List<News> findAll() throws SQLException;

	public List<News> findAllSplit(String column, String keyWord, Integer currentPage, Integer lineSize)
			throws SQLException;

	public Long getAllCount(String column, String keyWord) throws SQLException;

}
